package com.threeti.mecool.core.infrastructure.persistence.project;

import com.threeti.mecool.core.domain.model.project.ProjectStoreSellingTargetValue;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProjectStoreSellingTargetValueRepository extends JpaRepository<ProjectStoreSellingTargetValue, Long> {
    List<ProjectStoreSellingTargetValue> findBySellingTarget_ProjectStore_IdAndYearMonthBetween(Long projectStoreId, int yearMonthFrom, int yearMonthTo, Sort sort);
    List<ProjectStoreSellingTargetValue> findBySellingTarget_ProjectStore_IdAndYearMonthLessThan(Long projectStoreId, int yearMonth, Pageable pageable);
}
